#ifndef _PEINFO_H
#define _PEINFO_H

#include <windows.h>
#include <stdio.h>
#include <string.h>
#include <math.h> 


#define DOS_HEADER_SIZE		0x40
#define PE_HEADER_SIZE		0xF8
#define SECTION_SIZE		0x28
#define SECTION_NAME_LEN	0x08
#define IAT_POINTER_OFFSET	0x80
#define IID_LEN				0x14

int		GetIntFromPE(const char *pBuf);
BOOL	GetRDataInfo(const BYTE *pPEBuf,int iMemLen,int &iRDataLen,int &iRDataOffset);
// BOOL    GetIATInfo(const BYTE *pPEBuf,int iMemLen,CNIAT_INFO &IATInfo);
// int		GetIATApiInfo(const BYTE *pPEBuf,int iIIDOffset,int iOffsetChange,int &iFirstApiOffset,int &iLastApiOffset);

#endif 